<block name="left">
<!--菜单列表-->
<div class="proLeftBox" id="proLeftBox" style="display:none">
	<div class="proLeftMask"></div>
	<div class="proLeftListBox">
		<a href="{:U('User/user_info')}">
		<div class="proLeftImgBox padlr5">
				<div class="proLeftImg">
					<img src="{$resInfo['headimgurl']}" />
				</div>
				<div class="proLeftInfo">
					<p class="proLeftName defaultBlack">{$resInfo['nickname']}</p>
					<p class="proLeftDefault defaultAsh">查看个人信息</p>
				</div>
				<div class="proLeftRight">
					<span class="proLeftRightFont icon-uniE902 defaulticon"></span>
				</div>
		</div>
		</a>
		<ul class="proLeftNav">
			<a href="{:U('Index/index')}">			<li data-val='首页'>	 <span class="proLeftNavFont icon-1 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">首页</p></li></a>
			<a href="{:U('StockOption/index')}">	<li data-val='恒指期权'><span class="proLeftNavFont icon-1 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">恒指期权</p></li></a>
			<a href="{:U('Pay/personal_incharge')}"><li data-val='充值'>	 <span class="proLeftNavFont icon-2 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">充值</p></li></a>
			<a href="{:U('User/bank_index')}">		<li data-val='提现'>	 <span class="proLeftNavFont icon-3 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">提现</p></li></a>
			<a href="{:U('Transaction/index')}">	<li data-val='交易历史'><span class="proLeftNavFont icon-4 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">交易历史</p></li></a>
			<a href="{:U('Order/order_list')}">		<li data-val='订单列表'><span class="proLeftNavFont icon-5 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">订单列表</p></li></a>
			<a href="{:U('Payments/payments')}">	<li data-val='收支明细'><span class="proLeftNavFont icon-6 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">收支明细</p></li></a>
			<if condition="$is_agent eq 1"><a href="{:U('Commission/index')}">		<li data-val='分销中心'><span class="proLeftNavFont icon-7 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">分销中心</p></li></a></if>
			<if condition="$is_agent eq 0"><a href="{:U('Apply/index')}">			<li data-val='分销中心'><span class="proLeftNavFont icon-7 defaulticon"></span><p class="proLeftNavDescribe defaultBlack">分销中心</p></li></a></if>
		</ul>
	</div>
</div>
<!--菜单进入-->
<div class="dropMenu" id="target" style="display:none">
	<!-- <img src='__NEW__/option/images/mune.svg'/ > -->
</div>
<!--没注册提示框-->
<div class="left-tips">
	<p class="left-tipsp1">注册</p>
	<p class="left-tipsp2">您还没有注册,请先注册!</p>
	<div class="left-tipsdiv">
		<a class="left-tipsa1" href="#">取消</a>
		<a class="left-tipsa2" href="{:U('user/register')}">确定</a>
	</div>
</div>
<!-- 共用提示 -->
<div class="proTipsBox" style="display:none" id="all_tips">
	<div class="proTipsMaxk"></div>
	<div class="proTipsconter">
		<div class="proTipsP">
			<h4>系统提示</h4>
			<p id="all_pdword">密码错误，请重新输入密码</p>
		</div>
		<hr>
		<p>确认</p>
	</div>
</div>


<script type="text/javascript">
//swipe example

touch.on(document, "DOMContentLoaded", function(){
	//点击

	touch.on('#target', 'tap', function(e){
		e.preventDefault();
		$('.proLeftBox').animate({left:"0px"},500);
		$('.proLeftListBox').animate({left:"0px"},500);
	});
	//移动
	touch.on('#target', 'touchstart', function(ev){
		ev.preventDefault();
	});
	var target = document.getElementById("target");
	var dx, dy;
	touch.on('#target', 'drag', function(ev){
		var selfx,selfy,self=this;
		selfx=ev.x;
		selfy=ev.y;
		dx = dx || 0;
		dy = dy || 0;
		var offx = dx + ev.x + "px";
		var offy = dy + ev.y + "px";
		this.style.webkitTransform = "translate3d(" + offx + "," + offy + ",0)";
	});
	touch.on('#target', 'dragend', function(ev){3
		dx += ev.x;
		dy += ev.y;
		var moverx=Math.abs(ev.x),movery=Math.abs(ev.y);
		if(moverx<50&&movery<50){
			$('.proLeftBox').animate({left:"0px"},500);
			$('.proLeftListBox').animate({left:"0px"},500);
		}
//		console.log(moverx)
	});
	touch.on('#proLeftBox', 'swipeleft', function(ev){
		ev.preventDefault();
		$('.proLeftBox').animate({left:"-100%"},500);
		$('.proLeftListBox').animate({left:"-80%"},500);
		tap=1;
	});
});
//
// $('#target').click(function(){
// 		$('.proLeftBox').animate({left:"0px"},500);
// 		$('.proLeftListBox').animate({left:"0px"},500);
// })
//遮罩点击事件
$('.proLeftMask').click(function(e){
	e.stopPropagation;
	$('.proLeftBox').animate({left:"-100%"},500);
	$('.proLeftListBox').animate({left:"-80%"},500);
	tap=1;
})
/**
 * [input_pwd 交易密码登录]
 * @return {[type]} [description]
 */
function pwd_login(){
	//获取输入的交易
	var pwd = $('#futures_pwd').val();
	if(pwd==''){
		$(".nologin_pwd").html('请输入交易密码！');
		return;
	}
	var url="{:U('User/pwd_login')}";
    $.post(url,{pwd:pwd},function(data){
        if(data.status){
        	$(".nologin_pwd").html('成功！');
           	window.location.href="{:U('Index/index')}";
        }else{
            $(".nologin_pwd").html(data.info);
        }
    },'json')
}
</script>
</block>
